<?php

class XDS_Pager extends x10_GeneralClass
{
	public $offset = 0;
	public $limit = 0;

	public function __construct(x10_Config $config)
	{
		parent::__construct($config);

		$this->offset = $this->config->getConfigKey('offset');
		$this->limit = $this->config->getConfigKey('limit');
	}

	public function getIterator($for)
	{
		return new LimitIterator(new ArrayIterator($for), $this->offset, $this->limit);
	}
}

?>